package com.yfp.operation.mapper;

import com.yfp.operation.domain.DeviceCurrentComboPlanRoadDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfp.operation.domain.dto.ComboSoldOutDTO;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @description 针对表【device_current_combo_plan_road】的数据库操作Mapper
 * @createDate 2024-04-17 17:41:45
 * @Entity com.yfp.operation.domain.DeviceCurrentComboPlanRoad
 */
public interface DeviceCurrentComboPlanRoadMapper extends BaseMapper<DeviceCurrentComboPlanRoadDO> {

    void deleteByMachineId(String machineId);

    List<DeviceCurrentComboPlanRoadDO> roadInfo(String machineId);

    void updateRoad(DeviceCurrentComboPlanRoadDO dccpr);

    void updateComboNum(DeviceCurrentComboPlanRoadDO aDo);

    void batchUpdate(@Param("dccprList") ArrayList<DeviceCurrentComboPlanRoadDO> dccprList);

    void insertAll(@Param("comboList") List<DeviceCurrentComboPlanRoadDO> comboList);

    /**
     * 根据套餐计划id和套餐id删除套餐信息
     * @param comboSoldOutDTO
     */
    void deleteByCPlanIdAndComboId(ComboSoldOutDTO comboSoldOutDTO);
}




